<?php
class CloseTimeRecord extends TActiveRecord
{
	const TABLE='tbl_close_time';

	public $ID;
	public $CloseTime;
	
	public static $COLUMN_MAPPING=array
	(
		'time_id'=>'ID',
		'close_time'=>'CloseTime'
	);

	public static function finder($className=__CLASS__)
	{
		return parent::finder($className);
	}
	
	public function save()
	{
		parent::save();
	}
	
	public function getAllItems()
	{
		$criteria = new TActiveRecordCriteria;
		$criteria->Condition = "time_id > 0";
		return self::finder()->findAll($criteria);
	}
}
?>